package com.mf.controller;

import com.mf.service.ITapePurchaseService;
import com.mf.utils.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 实时更新的可买入股票代码 前端控制器
 * </p>
 *
 * @author mf
 * @since 2024-05-12
 */
@RestController
@RequestMapping("/stock/tapePurchase")
@Tag(name = "获取实时更新的可买入股票代码")
public class TapePurchaseController {
    @Resource
    private ITapePurchaseService tapePurchaseService;

    @Operation(summary ="查询实时可买入的股票代码")
    @GetMapping("/findTapePurchase")
    public Result<List<String> > findTapePurchase() {
        return Result.success(tapePurchaseService.findTapePurchase());
    }
}
